package org.fnzn.service.Impl;

import java.util.ArrayList;
import java.util.Map;

import org.fnzn.bean.LrdUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.fnzn.dao.LrdUserMapper;
import org.fnzn.service.LoginService;
import org.fnzn.service.base.AbstractService;
@Service
public class LoginServiceImpl extends AbstractService<LrdUser> implements LoginService {
	@Autowired
	LrdUserMapper lrdUserMapper;
	@Override
	public LrdUser findUserByName(String userName) {
		LrdUser lrdUser = findById(userName);
		return lrdUser;
	}
	@Override
	public ArrayList<Map<String,Object>> queryRole(String userId) {
		return lrdUserMapper.queryRole(userId);
	}

}
